package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.entity.MerchantAccountEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Optional;

/**
 * Created by CodeGenerator on 2020/08/14
 */
public interface MerchantAccountRepo extends PagingAndSortingRepository<MerchantAccountEntity, String>,
        JpaSpecificationExecutor<MerchantAccountEntity> {

    Optional<MerchantAccountEntity> findByUserId(String userId);

}